/*
 * addr.h
 *
 *  Created on: 2025.4.3
 *      Author: TracyHenry
 */

 #ifndef ADDR_H_
 #define ADDR_H_
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_common.h"

#define START_SECTOR_WIFI_INFO 0xFC
#define START_SECTOR_DEVICE_NUMBER_INFO 0xFD
#define START_SECTOR_DEVICE_INFO 0xFE

//主要是为了让结构体可以除于4，从而让spiflash4字节对齐
typedef struct DeviceInfo
{
    char deviceId[36];
    char productId[37]; 

    uint8_t deviceStatus;
    uint32_t deviceAttr1;
    uint32_t deviceAttr2;
    uint32_t deviceAttr3;
    struct DeviceInfo *pNext;
} DeviceInfo;

 #endif /* ADDR_H_ */